<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class contact_model extends CI_Model
{

    public function __construct()
	{
        parent::__construct();
    }
	
	function addContacts()
	{
		$data = array(
			'lb_cusmail' => $this->input->post('cusmail'),
			'lb_cusname' => $this->input->post('cusname'),
			'lb_address' => $this->input->post('address'),
			'nb_phone' => $this->input->post('phone'),
			'lb_subject' => $this->input->post('subject'),
			'lb_content' => $this->input->post('content'),
			'dt_create' => date("Y-m-d H:i:s") ,
			'bl_active' => 1
		);
		return $this->db->insert('lienhe',$data);
	}
} 
?>